/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xiongda.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.common.persistence.Page;
import com.jeeplus.common.service.CrudService;
import com.jeeplus.modules.xiongda.entity.XUser;
import com.jeeplus.modules.xiongda.dao.XUserDao;

/**
 * 用户Service
 * @author 缪琼
 * @version 2017-11-29
 */
@Service
@Transactional(readOnly = true)
public class XUserService extends CrudService<XUserDao, XUser> {

	@Autowired
	XUserDao xUserDao;

	public XUser get(String id) {
		return super.get(id);
	}
	
	public List<XUser> findList(XUser xUser) {
		return super.findList(xUser);
	}
	
	public Page<XUser> findPage(Page<XUser> page, XUser xUser) {
		return super.findPage(page, xUser);
	}
	
	@Transactional(readOnly = false)
	public void save(XUser xUser) {
		super.save(xUser);
	}
	
	@Transactional(readOnly = false)
	public void delete(XUser xUser) {
		super.delete(xUser);
	}

	@Transactional(readOnly = false)
	public int locked(Long id, Integer locked) {
		return xUserDao.locked(id, locked);
	}
	
	
}